import pygame

from Engine import Engine
from Config import Config
from Map import Map


class MainGame:

    def __init__(self):
        pygame.display.init()
        pygame.font.init()
        pygame.font.SysFont(Config.GLOBAL_FONT, Config.CELL_TXT_SIZE)

    @staticmethod
    def start():
        while True:
            theMap = Map().build()
            Engine(theMap).start()


if __name__ == '__main__':
    MainGame().start()
